package com.millstein.tsinglog.model.dto.user;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class ChangePasswordDTO {
    @NotBlank
    private String username;
    @NotBlank
    @Length(max = 20, min = 6)
    private String oldPassword;
    @NotBlank
    @Length(max = 20, min = 6)
    private String newPassword;
}
